<? echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?>
<rss version="2.0">
    <channel>
        <title>My Users</title>
        <description> an RSS feed of my users</description>
        <link>http://www2.newpaltz.edu/~plotkin2/UserAdmin/Users/index.php</link>
        <lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate>
        <pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
    </channel>
     
     

<?
	//header("content-type: text/csv");
	require_once('../inc.php');
	$results = User::GetAll();
	while($rs = $results->fetch_assoc())
	{
?>
        <item>
            <title><?=$rs['FirstName']?> <?=$rs['LastName']?></title>
            <description>
            	<?=$rs['FirstName']?> <?=$rs['LastName']?>'s birthday is <?=date('M d, Y', strtotime( $rs['Birthday'] ))?>
            </description>
            <link>http://www2.newpaltz.edu/~plotkin2/UserAdmin/Users/details.php?id=<?=$rs['id']?></link>
            <guid>http://www2.newpaltz.edu/~plotkin2/UserAdmin/Users/details.php?id=<?=$rs['id']?></guid>
            <pubDate>Mon, 06 Sep 2009 16:45:00 +0000 </pubDate>
        </item>

<? } ?>
    </channel>
</rss>